module.exports = {
    log4js: {
        appenders: [
            {
                type: 'console'
            }, {
                category: 'logFile',
                type: 'datefile',
                filename: './logs/',
                alwaysIncludePattern: true,
                pattern: '_yyyyMMdd.log'
            }
        ]
    },
    dbCfg: {
        user: 'ylzcdev',
        password: '4esz@WDC',
        server: 'nj.eliansun.com',
        port: 65271,
        database: 'hzylSpider_20180904',
        options:{requestTimeout:3000000,connectTimeout: 1500000},
        pool: {
            max: 15,
            min: 1,
            idleTimeoutMillis: 300
        }

    },
    reqOpts: {
        method: 'POST',
        encoding: 'utf-8',
        resolveWithFullResponse: false,
        jar: true,
        timeout: 1200 * 10000,
        headers: {
            
            'Accept': '*/*',
            'Accept-Language': 'zh-CN',
            'Accept-Charset': 'utf-8',
            'Cache-Control': 'no-cache',
            'Connection': 'keep-alive',
            'Pragma': 'no-cache',
            'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2970.0 Safari/537.36'
        }
    }
}